package com.example.springbootuflo.config;

import com.bstek.uflo.console.UfloServlet;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author ：ChanYong.Hu
 * @date ：Created in 2019/11/20 17:14
 */
@Configuration
public class ServletConfig {
    @Bean
    public ServletRegistrationBean servletRegistration() {
        return new ServletRegistrationBean(new UfloServlet(), "/uflo/*");
    }

}
